// 导入阿贾克斯
import axios from 'axios'

const request = axios.create({
  baseURL: 'http://api.imooc.hybrid.lgdsunday.club/' // 基础路径
})

// 请求拦截器
request.interceptors.request.use(
  (request) => {
    request.params = {
      token: '595fe950-7ebd-11ed-aa1f-dd279271aa3a'
    }
    return request
  },
  (error) => {
    console.log(error)
  }
)
export default request
